package com.xiegang.orderservice.remote;

import com.xiegang.internalcommon.dto.ResponseResult;
import com.xiegang.internalcommon.response.TerminalResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author xieGang
 * @description
 * @date 2023/4/9 18:39
 **/

@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.POST,value = "/terminal/aroundSearch")
    public ResponseResult<List<TerminalResponse>> aroundSearch(@RequestParam String center,@RequestParam Integer radius);
}
